/* eslint-disable */
/* tslint:disable */
/*
 * ---------------------------------------------------------------
 * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API        ##
 * ##                                                           ##
 * ## AUTHOR: acacode                                           ##
 * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
 * ---------------------------------------------------------------
 */

/**
 * 账号类型:Success=SUCCESS, ValidateFail=FAIL, Timeout=TIMEOUT
 * @format string
 */
export enum EValidateResultType {
  Success = 'SUCCESS',
  Fail = 'FAIL',
  Timeout = 'TIMEOUT'
}

/**
 * Success=SUCCESS, ValidateFail=FAIL, Timeout=TIMEOUT
 * @format string
 */
export type TValidateResultType = EValidateResultType.Success | EValidateResultType.Fail | EValidateResultType.Timeout

export interface IValidateResult {
  /** Success=SUCCESS, ValidateFail=FAIL, Timeout=TIMEOUT */
  result?: TValidateResultType
  message?: string | null
}

   

/**
 * 账号类型:Account=account ,Mobile=mobile, Email=email
 * @format string
 */
export enum EAccountType {
  Account = 'account',
  Mobile = 'mobile',
  Email = 'email'
}

/*
* 账号类型:Account=account ,Mobile=mobile, Email=email
* @format string
*/
export type TAccountType = EAccountType.Account | EAccountType.Mobile | EAccountType.Email


/** 登录信息 */
export interface IAuthLoginInput {
  /** 用户名 */
  userName?: string | null
  /** 手机号 */
  mobile?: string | null
  /** 邮箱地址 */
  email?: string | null
  /** 账号类型:Account=account, Mobile=mobile, Email=email */
  accountType?: TAccountType
  /**
   * 密码
   * @minLength 1
   */
  password: string
  /** 密码键 */
  passwordKey?: string | null
  /** 验证码Id */
  captchaId?: string | null
  /** 验证码数据 */
  captchaData?: string | null
}

/** 邮箱登录信息 */
export interface IAuthEmailLoginInput {
  /**
   * 邮箱地址
   * @minLength 1
   */
  email: string
  /**
   * 验证码
   * @minLength 1
   */
  code: string
  /**
   * 验证码Id
   * @minLength 1
   */
  codeId: string
}

/** 手机号登录信息 */
export interface IAuthMobileLoginInput {
  /**
   * 手机号
   * @minLength 1
   */
  mobile: string
  /**
   * 验证码
   * @minLength 1
   */
  code: string
  /**
   * 验证码Id
   * @minLength 1
   */
  codeId: string
}
